// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-22

#ifndef __TM_CHECKUSER_H_COMMON_SVR_BASE__
#define __TM_CHECKUSER_H_COMMON_SVR_BASE__

#pragma once

#include "base_timer.h"

namespace JoyServer
{

class CJoyUserSet;
class CJoyServer;

// check user status in a user set.
// do following tasks :
//      user active time.
//      online user count (in login server).
//      
class CJoyTmCheckUser : public CJoyTimerObject
{
protected:
    CJoyServer* m_server;
    int m_currUserSet;

    virtual void OnExecute();
public:
    CJoyTmCheckUser(CJoyServer* pServer);
    virtual ~CJoyTmCheckUser();
};


} // namespace JoyServer

#endif  // __TM_CHECKUSER_H_COMMON_SVR_BASE__